﻿namespace SKeeper.Domain.Companies
{
    using Items;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using Users;
    using Warehouse;

    public class Company : IEntity
    {
        private ICollection<Warehouse> warehouses;
        public Company()
        {
            this.warehouses = new HashSet<Warehouse>();
        }
        
        public int Id { get; set; }

        public string Name { get; set; }

        public string UserId { get; set; }

        public virtual User User { get; set; }
        
        public virtual ICollection<Warehouse> Warehouses
        {
            get { return this.warehouses; }
            set { this.warehouses = value; }
        }

        public virtual ICollection<Item> Items { get; set; }
    }
}
